2. Kullback-Leibler divergence
1. Definition
KL divergence is an important way to evaluate the similarity of 2 distributions, then give a reasonable Loss. Thus it is often used as the learning function of generated network, for example, VAE (Variational autoencoder)
(1) Concepts of KL-divergence
The Kullback-Leibler divergence(KL divergence)[1] is also called relative entropy or I-divergence, is a type of statistical or distribution distance. which can measure one distribution
or equivalent to :
Also it is expectation of the logarithmic difference between the probabilities
For continuous function, it is also called relative entropy (defined as integral):
Note
(2) Design Thoughts of KL-divergence
In the application purpose, we want the
Since we care more about the q is similar to p
Intuitively, there are three cases of importance[2] (changed some expressions for consistency): • If
